package com.lcq.common.exception;

public enum BizCodeEnum {
    UNKNOW_EXEPTION(10000,"未知异常"),
    INVALID_EXCEPTION(10001,"校验非法异常"),
    PARAM_NOT_READABLE_EXCEPTION(10002,"参数读取失败异常"),
    PRODUCT_UP_EXCEPTION(10003,"商品上架异常"),
    AUTH_REG_SMS_FREQUENT_EXCEPTION(11001,"验证码发送过于频繁异常"),
    MEMBER_USERNAME_EXIST_EXCEPTION(12001,"用户名已存在"),
    MEMBER_PHONE_EXIST_EXCEPTION(12002,"手机号已存在"),
    MEMBER_USERNAME_PASSWORD_INVALID(12002,"用户名或密码错误"),
    WARE_OUT_OF_STOCK(13001,"库存不足"),
    ORDER_CREATE_ERROR(13002,"订单构建异常");

    private Integer code;
    private String msg;

    BizCodeEnum(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
